package com.sea.supply.service.impl;

import com.codecrane.core.power.service.DictDetailService;
import com.codecrane.core.web.BatchImportUtils;
import com.sea.physical.entity.CreatePlan;
import com.sea.physical.service.CreatePlanService;
import com.sea.supply.entity.*;
import com.sea.supply.mapper.ProduceDetailMapper;
import com.sea.supply.mapper.ReceiveMapper;
import com.sea.supply.mapper.WareReceiveMapper;
import com.sea.supply.service.*;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.InputStream;
import java.util.List;


@Service
public class WareReceiveServiceImpl implements WareReceiveService {

    @Autowired
    private WareReceiveMapper wareReceiveMapper;


    @Override
    public int save(WareReceive wareReceive) {
        return wareReceiveMapper.insert(wareReceive);
    }

    @Override
    public List<WareReceive> findByCnd(WareReceive wareReceive) {
        return wareReceiveMapper.findByCnd(wareReceive);
    }
}
